package com.sinosoft.perfect.system._authorization.service;

import java.sql.SQLException;
import java.util.List;

import com.sinosoft.perfect.system._.po.TUserRolebusinessRelation;

public interface IUserRolebusinessAuthorizeService {
	
	public List<TUserRolebusinessRelation> queryRolebusinessOfUser(String userId) throws SQLException;
	
	public boolean delAllRolesOfUserAndAddUserRoles(String userId, String chooseRoleBusinessString);
	
	public boolean delAllRoleUsersOfUnitAndAddUsersRoleOfUnit(String unitId, String chooseRoleBusinessString);
	
	/**
	 * 将多个用户同时插入到业务角色中。(fys 11/07/14)
	 * @param addUserIds 所有需要插入用户的userId，用','隔开
	 * @param delUserIds 所有需要删除用户的userId，用','隔开
	 * @param roleBusinessId 用户指定的业务角色Id
	 * @throws SQLException
	 */
	public boolean deleteAndinsertAllUsersInOneRoleBusiness(String addUserIds,String delUserIds, String roleBusinessId) throws SQLException;
}
